package com.example.yskjproject.content;

import com.tencent.qcloud.core.auth.QCloudCredentialProvider;
import com.tencent.qcloud.core.auth.ShortTimeCredentialProvider;

/**
 * Content
 * <p>
 * 作者：zx
 * 创建时间：2024/4/22
 */
public class Content {

    public static  int page = 1;

    public static final int limit = 10;

    // ----腾讯cos

    // 存储桶所在地域简称，例如广州地区是 ap-guangzhou
    public static final String region = "ap-beijing";
    public static final String bucket = "originalbody-bj-1253641711";  // 桶名称
    public static final String secretId = "AKIDCd60tbGoL2ibitEeFxkbhXMY2ZBta9eQ";
    public static final String secretKey = "56ENRdn3Mk0JvR1dMDB66BC990j3X0Rp";

    // keyDuration 为请求中的密钥有效期，单位为秒
    public static final QCloudCredentialProvider myCredentialProvider =
            new ShortTimeCredentialProvider(secretId, secretKey, 300);
    public static String getCosPicturePath(int i){
      return   "picture/" + System.currentTimeMillis() + i + ".jpeg";
    }
    public static final String cosPicturePath = "picture/" + System.currentTimeMillis() + ".jpeg"; //对象在存储桶中的位置标识符，即称对象键
    public static final String cosVideoPath = "video/" + System.currentTimeMillis() + ".mp4";

    public static final int SDK_ID = 1600068089;

    public static final String SDK_SECRET_KEY = "f2c4dd61fbf48742c31ff144f25e164a2f3d32b8e2bdfa626da5a3c7a576d483";



}
